package com.cloud.workmanagerdemo

import android.content.Context
import android.util.Log
import androidx.work.Worker
import androidx.work.WorkerParameters

/**
 * @auth: njb
 * @date: 2024/11/26 23:38
 * @desc: 任务链WorkManager
 */
class DisPatchWork(context: Context, workerParams: WorkerParameters) :
    Worker(context, workerParams) {
    override fun doWork(): Result {
        val activityData = inputData.getString("data")
        Log.e(Constants.TAG, "任务链$activityData")
        return Result.success()
    }
}
